package com.star.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.star.model.CityModel;

public interface CityDao {
	@Select("select * from t_citys where cid=#{cityId}")
	public CityModel queryCity(Integer cityId);
	
	@Insert("insert into t_citys (cid,province,city,district,gmt_create,gmt_modified) values(#{id},#{province},#{city},#{district},now(),now())")
	public void insertCity(CityModel model);
	
	@Select("select * from t_citys")
	public List<CityModel> queryCityList();
}
